package org.zs.miracle.service.role.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.zs.miracle.common.base.vo.BaseOutputVO;
import org.zs.miracle.entity.enums.GenderEnum;

/**
 * 角色下的用户
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RoleUserModel extends BaseOutputVO {
  
  @Serial
  private static final long serialVersionUID = -3191921659477946369L;
  
  /**
   * 用户名
   */
  @Schema(description = "用户名")
  private String username;
  
  /**
   * 账号
   */
  @Schema(description = "账号")
  private String account;
  
  /**
   * 性别
   */
  @Schema(description = "性别")
  private GenderEnum gender;
  
  /**
   * 手机号
   */
  @Schema(description = "手机号")
  private String phone;
  
  /**
   * 头像url
   */
  @Schema(description = "头像url")
  private String avatarUrl;
  
  /**
   * 备注
   */
  @Schema(description = "备注")
  private String remark;
  
  /**
   * 最后登录时间
   */
  @Schema(description = "最后登录时间")
  private LocalDateTime lastLoginTime;
  
  /**
   * 启用状态
   */
  @Schema(description = "启用状态")
  private Boolean enable;
}